-- GENERATED SPELL FOR [Zealot Lor'Khan] --


function spell0_11347(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11347', 5264, 1)
end

function spell1_11347(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(17201,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11347', 637, 1)
end

function spell2_11347(pUnit, Event) --@Great Heal,Heal--
pUnit:FullCastSpellOnTarget(24208,pUnit)
pUnit:RegisterEvent('Sorts_11347', 4000, 1)
end

function spell3_11347(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(20545,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11347', 0, 1)
end

function spell4_11347(pUnit, Event) --@Resurrection,Self--
pUnit:FullCastSpellOnTarget(24173,pUnit)
pUnit:RegisterEvent('Sorts_11347', 2000, 1)
end

function Sorts_11347(pUnit, Event)
local choix_sorts_11347 = math.random(0, 4)
if choix_sorts_11347 == 0 then
pUnit:RegisterEvent('spell0_11347', 1, 1)
end
if choix_sorts_11347 == 1 then
pUnit:RegisterEvent('spell1_11347', 1, 1)
end
if choix_sorts_11347 == 2 then
pUnit:RegisterEvent('spell2_11347', 1, 1)
end
if choix_sorts_11347 == 3 then
pUnit:RegisterEvent('spell3_11347', 1, 1)
end
if choix_sorts_11347 == 4 then
pUnit:RegisterEvent('spell4_11347', 1, 1)
end
end

function mob11347_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11347', math.random(1500, 3000), 1)
end

function mob11347_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11347_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11347_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11347, 1, 'mob11347_Action')
RegisterUnitEvent(11347, 2, 'mob11347_Leave')
RegisterUnitEvent(11347, 3, 'mob11347_Kill')
RegisterUnitEvent(11347, 4, 'mob11347_Die')
